
import request from '../utils/request'

export function addCart(params) {
  return request.post('/shop-cart', params);
}

export function modifyCart(params) {
  return request.put('/shop-cart', params);
}

export function getCart(params) {
  return request.get('/shop-cart', { params });
}

export function deleteCartItem(id) {
  return request.delete(`/shop-cart/${id}`);
}

export function getByCartItemIds(params) {
  return request.get('/shop-cart/settle', { params });
}

